package com.itheima.reggie.entity;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 购物车(ShoppingCart)表实体类
 *
 * @author shenjiaqi
 * @since 2024-02-06 10:44:25
 */
@Data
@SuppressWarnings("serial")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ShoppingCart {
    /**
     * 主键
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    /**
     * 名称
     */
    private String name;
    /**
     * 图片
     */
    private String image;
    /**
     * 主键
     */
    private Long userId;
    /**
     * 菜品id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long dishId;
    /**
     * 套餐id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long setmealId;
    /**
     * 口味
     */
    private String dishFlavor;
    /**
     * 数量
     */
    private Integer number;
    /**
     * 金额
     */
    private Double amount;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}

